package cm.zhentao.service.impl;

import cm.zhentao.pojo.TDeviceGather;
import cm.zhentao.pojo.dto.DeviceDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cm.zhentao.pojo.TDevice;
import cm.zhentao.service.TDeviceService;
import cm.zhentao.mapper.TDeviceMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Lenovo
* @description 针对表【t_device】的数据库操作Service实现
* @createDate 2024-07-17 10:50:47
*/
@Service
public class TDeviceServiceImpl extends ServiceImpl<TDeviceMapper, TDevice>
    implements TDeviceService{

    @Resource
    private TDeviceMapper deviceMapper;

    /**
     * 设备列表
     * @param dto
     * @return
     */
    @Override
    public Page<TDevice> getDeviceList(DeviceDto dto) {
        Page<TDevice> page = new Page<>(dto.getPageNum(),dto.getPageSize());
        Page<TDevice> page1 = deviceMapper.getDeviceList(page);
        return page1;
    }
}




